import React, { Component } from 'react';
import { Link, Route } from 'react-router-dom';
import Details from './details'
class Stu extends Component {
    state = {  }
    render() { 
        return ( <div>
            <ul>
                <li><Link to='/stu/details/1'>张三</Link></li>
                <li><Link to='/stu/details/2'>李四</Link></li>
                <li><Link to='/stu/details/3'>王五</Link></li>
            </ul>
            <Route path='/stu/details/:id' component={Details}></Route>
        </div> );
    }
}
 
export default Stu;